<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<jsp:include page="/WEB-INF/views/commons/center_top.jsp"/>
<style>
	ul.ztree {margin-top: 10px;border: none;background: none;width:220px;height: auto;overflow-y: auto;overflow-x: hidden;}
	h1{text-align: left;}
	.widget-body{
		overflow-y: scroll;
		min-height: 500px;
		max-height: 700px;
	}
</style>

<input type="hidden" id="roleId" value="${id}"/>

<div class="col-sm-3">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>菜单列表</span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-${btn_color} btn-sm" id="menuSave">
						<i class="icon-save bigger-150"></i>
						<s:message code="save"/>
					</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<div class="widget-main padding-8">
				<div id="tree_info" class="tree tree-unselectable">
					<ul id="menuTree" class="ztree"></ul>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="col-sm-3">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>按钮列表</span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-${btn_color} btn-sm" id="btnSave">
						<i class="icon-save bigger-150"></i>
						<s:message code="save"/>
					</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<div class="table-responsive">
				<table id="btn-table" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th class="center">
								<label><input type="checkbox" class="ace"><span class="lbl"></span></label>
							</th>
							<th>按钮</th>
						</tr>
					</thead>
					<tbody id="btnBody">
						
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<div class="col-sm-3">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>部门列表</span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-${btn_color} btn-sm" id="deptSave">
						<i class="icon-save bigger-150"></i>
						<s:message code="save"/>
					</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<div class="widget-main padding-8">
				<div id="tree_info" class="tree tree-unselectable">
					<ul id="deptTree" class="ztree"></ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="col-sm-3">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>栏目列表</span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-${btn_color} btn-sm" id="subjectSave">
						<i class="icon-save bigger-150"></i>
						<s:message code="save"/>
					</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<div class="widget-main padding-8">
				<div id="tree_info" class="tree tree-unselectable">
					<ul id="subjectTree" class="ztree"></ul>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="/static/module/system/role/roleMenu.js"></script>
<script type="text/javascript" src="/static/module/commons/public.js"></script>